<?php

require_once 'Interface.php';

class Joob_Session_Storage_Standard implements Joob_Session_Storage_Interface {
	
	/**
	 * @see Joob_Session_Storage_Interface::store()
	 */
	public function store($key, $value) {
		$_SESSION [$key] = $value;
	}
	
	/**
	 * @see Joob_Session_Storage_Interface::retrieve()
	 */
	public function retrieve($key) {
		if (isset ( $_SESSION [$key] )) {
			return $_SESSION [$key];
		}
		return null;
	}
}

?>